﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace DataSync.Entity
{
    public class FtpConfig : FileReaderConfig
    {
        public FtpConfig()
        { }

        public FtpConfig(FileReaderConfig basecnf)
        {
            this.BackDir = basecnf.BackDir;
            this.DeleteSourceFile = basecnf.DeleteSourceFile;
            this.FileName = basecnf.FileName;
            this.LocalDir = basecnf.LocalDir;
        }
        public string IP { get; set; }
        public string Port { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }

        /// <summary>
        /// 远程数据存放目录
        /// </summary>
        public string RemortDir { get; set; }
        /// <summary>
        /// 文件匹配符
        /// </summary>
        public string FileMatch { get; set; }

        /// <summary>
        /// 最大文件下载数
        /// </summary>
        public int MaxDownLoadFile { get; set; }

    }
}
